package com.yxy.chatserver.domain.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 好友请求
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class FriendRequestVO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    private Long id;
    // 发起添加的用户id
    private String fromUserId;
    // 接收添加的用户id
    private String toUserId;
    // 请求状态: pending-待处理, accepted-已接受, rejected-已拒绝
    private String status = "pending";
    // 添加请求的附加信息
    private String note;
    // 发起时间
    private LocalDateTime createTime;

    // 额外缓存字段
    private String fromUserNickname;
    private String fromUserAvatar;
    private String toUserNickname;
    private String toUserAvatar;
}
